Client Credentials
O fluxo de client credential não concede acesso ao uso das APIs de Banking. Para utilizá-las é obrigatório o uso do fluxo de Authorization Code
Token Request
POST /oauth2/token HTTP/1.1
Host: id.btgpactual.com
Content-type: application/x-www-form-urlencoded
Authorization: Basic <client_id:client_secret> // Base 64 encoded
grant_type=client_credentials&scope={scope}
Token Response
HTTP/1.1 200 OK
Content-Type: application/json
{"access_token":"<exemplo-access-token>","scope":"apps", "token_type":"Bearer","expires_in":86400}
HTTP/1.1 200 OK
Content-Type: application/json
{"access_token":"<exemplo-access-token>","scope":"apps", "token_type":"Bearer","expires_in":86400}